package vo;

public class Empp {
    private Integer empid;
    private String empname;
    private Integer deptid;
    private Integer locid;

    private Deptt deptt;
    public Deptt getDeptt() {return deptt;}//用于从员工到地区的查询
    public void setDeptt(Deptt deptt) {this.deptt = deptt;}

    private Loc loc;
    public Loc getLoc() {return loc;}//用于从部门到员工再到地区的查询
    public void setLoc(Loc loc) {this.loc = loc;}

    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    public String getEmpname() {
        return empname;
    }

    public void setEmpname(String empname) {
        this.empname = empname;
    }

    public Integer getLocid() {
        return locid;
    }

    public void setLocid(Integer locid) {
        this.locid = locid;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Empp() {
    }

    @Override
    public String toString() {
        return "Empp{" +
                "empid=" + empid +
                ", empname='" + empname + '\'' +
                ", deptid=" + deptid +
                ", locid=" + locid +
                ", deptt=" + deptt +
                ", loc=" + loc +
                '}';
    }


}

